package com.twinkle.utils;

import org.apache.commons.lang3.StringUtils;

/**
 * @title: ParamTranslate
 * @description:
 * @author: Paul
 * @date: 2023/3/30 14:19
 */
public class ParamTranslate {

    public static String getParamName(String param) {
        if (StringUtils.equals(param, "algoParam")) {
            return "模型参数设置";
        } else if (StringUtils.equals(param, "appName")) {
            return "模型名称";
        }else if (StringUtils.equals(param, "dataSourceId")) {
            return "数据源id";
        }else if (StringUtils.equals(param, "featureCols")) {
            return "特征变量的列集合";
        }else if (StringUtils.equals(param, "classCols")) {
            return "分类变量的列集合";
        } else if (StringUtils.equals(param, "preProcessMethodList")) {
            return "数据预处理策略设置";
        }else if (StringUtils.equals(param, "standardization")) {
            return "数据无量纲化策略";
        }else if (StringUtils.equals(param, "tableName")) {
            return "数据表名";
        }else if (StringUtils.equals(param, "id")) {
            return "模型id";
        }else if (StringUtils.equals(param, "trainDataRatio")) {
            return "训练集占比";
        }
        return param;
    }
}
